<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html xmlns:fb="http://ogp.me/ns/fb#">
	<head>
	<link rel="stylesheet" type="text/css" href="CSS/product_form.css" />
	<title>제품 정보</title>
	<?php
	include "../controller/product_controller.php";
	?>
	
	</head>
	<body>
			<div>
				<h2>제품 정보</h2>
				<?
					$product_name = $_GET["product_name"]; 
					$product_data = get_product_data($product_name); 
				?>
					<div class="product">
						
							<a href="../controller/product_controller.php?interest_product=<?echo $product_data[2];?>&product_image=<?echo $product_data[4];?>"><img src = "css/image/interest_2.png" id = "favorit"/></a>
							<img src = "../Images/<?echo $product_data[4];?>" id ='product_img'/>

							<table>	
							<tr>
								<td id = 'name'>제품명</td>
								<td><? echo $product_data[2]; ?></td>
							</tr>
							<tr>
								<td id = 'name'>회사</td>
								<td><? echo $product_data[5]; ?></td>
							</tr>
							<tr>
								<td id = 'name'>상세정보</td>
								<td><? echo $product_data[3]; ?></td>
							</tr>
							<tr>
								<td id = 'name'>작성자</td>
								<td><a href ="http://www.facebook.com/<?php echo substr($product_data[1],0,15); ?>" target ="_top"><img src="https://graph.facebook.com/<?php echo substr($product_data[1],0,15); ?>/picture" id ='fb_img'>
									<? echo substr($product_data[1],15);?> </a>
								
								
								
								
								</td>
							</tr>
						</table>
					</div>
				
				
				<div id="fb-root"></div>
					<script>(function(d, s, id) {
					  var js, fjs = d.getElementsByTagName(s)[0];
					  if (d.getElementById(id)) return;
					  js = d.createElement(s); js.id = id;
					  js.src = "//connect.facebook.net/ko_KR/all.js#xfbml=1&appId=314860265232330";
					  fjs.parentNode.insertBefore(js, fjs);
					}(document, 'script', 'facebook-jssdk'));</script>
					<fb:live-stream event_app_id="314860265232330" width="750" height="500" xid="<? echo $product_data[2]; ?>" via_url="http://117.17.102.203/view/product.html?product_name=" always_post_to_friends="true"></fb:live-stream>
				
			</div>
	</body> 
 </html>